package com.spic.business.plan.supplies.service;

import com.spic.business.common.core.utils.poi.ExcelMsg;
import com.spic.business.plan.supplies.domain.PlanExcelDto;
import com.spic.business.plan.supplies.domain.PlanSupplies;

import java.util.List;

/**
 * 应急物资台账Service接口
 * 
 * @author spic
 * @date 2021-10-27
 */
public interface IPlanSuppliesService {
    /**
     * 查询应急物资台账
     *
     * @param id 应急物资台账主键
     * @return 应急物资台账
     */
    public PlanSupplies selectPlanSuppliesById(Long id);

    /**
     * 查询应急物资台账列表
     *
     * @param planSupplies 应急物资台账
     * @return 应急物资台账集合
     */
    public List<PlanSupplies> selectPlanSuppliesList(PlanSupplies planSupplies);

    /**
     * 新增应急物资台账
     *
     * @param planSupplies 应急物资台账
     * @return 结果
     */
    public int insertPlanSupplies(PlanSupplies planSupplies);

    /**
     * 批量导入
     *
     * @param planSupplies
     * @return
     */
    int batchInsertSuplies(List<PlanSupplies> planSupplies);


    /**
     * 修改应急物资台账
     *
     * @param planSupplies 应急物资台账
     * @return 结果
     */
    public int updatePlanSupplies(PlanSupplies planSupplies);

    /**
     * 批量删除应急物资台账
     *
     * @param ids 需要删除的应急物资台账主键集合
     * @return 结果
     */
    public int deletePlanSuppliesByIds(Long[] ids);

    /**
     * 删除应急物资台账信息
     *
     * @param id 应急物资台账主键
     * @return 结果
     */
    public int deletePlanSuppliesById(Long id);

    /**
     * 导入数据
     * @param planSuppliesList
     * @return
     */
    ExcelMsg importData(List<PlanExcelDto> planSuppliesList, boolean isUpdateSupport) throws InstantiationException, IllegalAccessException;
}
